﻿<UserControl x:Class="GameFrameLibrary.Frames.MenuFrame"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:input="clr-namespace:Prism.Games.GalEngine.Scripts.Parser.Input;assembly=InputModel"
             mc:Ignorable="d"
             d:DesignHeight="576" d:DesignWidth="1024">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="SharedStyles.xaml" />
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>

    <Grid Name="GameLayout" Background="Black">
        <Grid Name="MenuLayout">
            <Grid Name="BackgroundImageLayout">
                <Grid.Background>
                    <ImageBrush x:Name="BackgroundImage"  Opacity="1" Stretch="UniformToFill" />
                </Grid.Background>
                <Grid Name="BackgroundVideoLayout">
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="1*" />
                            <RowDefinition Height="1*" />
                        </Grid.RowDefinitions>
                        <Grid Grid.Row="1" Name="MenuButtonLayout" HorizontalAlignment="Center" VerticalAlignment="Center" >
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                                <ColumnDefinition Width="Auto" />
                            </Grid.ColumnDefinitions>
                            <Button Width="200" Name="NewGameButton" Grid.Column="0" Margin="10" Command="input:GameCommands.NewGame"  MouseEnter="Button_MouseEnter">
                                <Button.Content>
                                    <TextBlock Text="    NewGame    " />
                                    <!--<Image Source="Images/NewGame.png" />-->
                                </Button.Content>
                            </Button>
                            <Button Width="200" Name="LoadGameButton" Grid.Column="1" Margin="10" Command="input:GameCommands.LoadGame"  MouseEnter="Button_MouseEnter">
                                <Button.Content>
                                    <TextBlock Text="    LoadGame    " />
                                    <!--<Image Source="Images/LoadGame.png" />-->
                                </Button.Content>
                            </Button>
                            <Button Width="200" Name="ConfigButton" Grid.Column="2" Margin="10" Command="input:GameCommands.Config" MouseEnter="Button_MouseEnter"  >
                                <Button.Content>
                                    <TextBlock Text="    Config    " />
                                    <!--<Image Source="Images/Config.png" />-->
                                </Button.Content>
                            </Button>
                            <Button Width="200" Name="ExitButton" Grid.Column="3" Margin="10" Command="input:GameCommands.Exit" MouseEnter="Button_MouseEnter">
                                <Button.Content>
                                    <TextBlock Text="    Exit    " />
                                    <!--<Image Source="Images/Exit.png" />-->
                                </Button.Content>
                            </Button>
                        </Grid>
                    </Grid>
                </Grid>
            </Grid>
        </Grid>
    </Grid>
</UserControl>

